cmake_minimum_required(VERSION 3.0)

PROJECT(dbuscpp)

include_directories(.)
include_directories(${DBUSCPP_PATH}/include/dbus-c++-1/)

link_directories(${DBUSCPP_PATH}/lib)

set(SOURCE_FILES
        DBusServiceBase.cpp
        DBusServiceBase.h
        )

add_executable(dbus_server
        dbus_server.cpp
        DBusServiceServer.cpp
        DBusServiceServer.h
        ${SOURCE_FILES}
        )

target_link_libraries(dbus_server
        dbus-c++-1
        )

add_executable(dbus_client
        dbus_client.cpp
        DBusServiceLog.cpp
        DBusServiceLog.h
        ${SOURCE_FILES}
        )

target_link_libraries(dbus_client
        dbus-c++-1
        )